package com.tjbklx1.spring_cloud_config_server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@EnableDiscoveryClient
@EnableConfigServer
@SpringBootApplication
public class ConfigServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(ConfigServerApplication.class, args);
	}
	//http://localhost:8001/config/test  
	//http://localhost:8001/config/dev
	//http://localhost:8001/config-dev.properties
	// config ==配置文件的前缀
	//curl -X POST http://localhost:8001/bus/refresh
}
